package com.leizi.igym.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 
 * @TableName t_member
 */
@TableName(value ="t_member")
@Data
public class Member implements Serializable {
    /**
     * 会员id
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 会员名称
     */
    @TableField(value = "member_name")
    private String memberName;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 会员电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 会员对应用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 会员等级，周卡会员，月卡会员，年卡会员等
     */
    @TableField(value = "level")
    private String level;


    /**
     * 激活码
     */
    @TableField(value = "cdk")
    private String cdk;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 过期时间
     */
    @TableField(value = "expire_time")
    private LocalDate expireTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}